//
//  JQNetworkLog.h
//  JQNetworking
//
//  Created by zhujiaquan on 2018/1/10.
//  Copyright © 2018年 JQ. All rights reserved.
//

#import <Foundation/Foundation.h>

#ifdef DEBUG
#define JQNLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#define JQNLog(...)
#endif

#define JQNLogDebug(__URL__, __RESPONSE__) [JQNetworkLog logWithRequestUrl:__URL__ response:__RESPONSE__]
#define JQNLogError(__URL__, __ERROR__) [JQNetworkLog logWithRequestUrl:__URL__ error:__ERROR__]

@interface JQNetworkLog : NSObject

+ (void)logWithRequestUrl:(NSString *)url response:(id)response;

+ (void)logWithRequestUrl:(NSString *)url error:(NSError *)error;

@end
